package com.platform.modules.sys.service;

import java.awt.image.BufferedImage;

import com.baomidou.mybatisplus.extension.service.IService;
import com.platform.modules.sys.entity.SysCaptchaEntity;

/**
 * 验证码
 *
 * @author 肖亮
 */
public interface SysCaptchaService extends IService<SysCaptchaEntity> {
	/**
	 * 获取图片验证码
	 *
	 * @param uuid
	 *            uuid
	 * @return BufferedImage
	 */
	BufferedImage getCaptcha(String uuid);

	/**
	 * 验证码效验
	 *
	 * @param uuid
	 *            uuid
	 * @param code
	 *            code
	 * @return 校验结果
	 */
	boolean validate(String uuid, String code);
}
